package com.isale.model.db;

import com.isale.common.model.db.BaseDbEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 数据库表【sys_user】对应的entity对象
 *
 * @author bjs
 * @date 2016-11-22 15:18:06
 */
@Entity
@Table(name = "sys_user")
public class SysUser extends BaseDbEntity implements Serializable {
    //
    @Column(name = "organization_id", nullable = false)
    private java.lang.Long organizationId;


    //
    @Column(name = "username", nullable = false)
    private java.lang.String username;


    //
    @Column(name = "password", nullable = false)
    private java.lang.String password;


    //
    @Column(name = "salt", nullable = false)
    private java.lang.String salt;


    //
    @Column(name = "role_ids", nullable = false)
    private java.lang.String roleIds;


    //
    @Column(name = "locked", nullable = false)
    private java.lang.Integer locked;

    // ================================================================================================

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.Long
     */
    public java.lang.Long getOrganizationId() {
        return organizationId;
    }

    /**
     * 设置对象的属性【】
     *
     * @param organizationId
     */
    public void setOrganizationId(java.lang.Long organizationId) {
        this.organizationId = organizationId;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getUsername() {
        return username;
    }

    /**
     * 设置对象的属性【】
     *
     * @param username
     */
    public void setUsername(java.lang.String username) {
        this.username = username;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getPassword() {
        return password;
    }

    /**
     * 设置对象的属性【】
     *
     * @param password
     */
    public void setPassword(java.lang.String password) {
        this.password = password;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getSalt() {
        return salt;
    }

    /**
     * 设置对象的属性【】
     *
     * @param salt
     */
    public void setSalt(java.lang.String salt) {
        this.salt = salt;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getRoleIds() {
        return roleIds;
    }

    /**
     * 设置对象的属性【】
     *
     * @param roleIds
     */
    public void setRoleIds(java.lang.String roleIds) {
        this.roleIds = roleIds;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.Integer
     */
    public java.lang.Integer getLocked() {
        return locked;
    }

    /**
     * 设置对象的属性【】
     *
     * @param locked
     */
    public void setLocked(java.lang.Integer locked) {
        this.locked = locked;
    }

    // ================================================================================================

    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("SysUser=====>");
        sb.append("{");
        sb.append("id=>" + this.id).append(", ");
        sb.append("organizationId=>" + this.organizationId).append(", ");
        sb.append("username=>" + this.username).append(", ");
        sb.append("password=>" + this.password).append(", ");
        sb.append("salt=>" + this.salt).append(", ");
        sb.append("roleIds=>" + this.roleIds).append(", ");
        sb.append("locked=>" + this.locked).append(", ");
        sb.append("}");
        return sb.toString();
    }

}